package jxc.data.hibernate.dao;

import org.hibernate.Query;
import jxc.data.hibernate.pojo.*;

public class OperatorDAO extends HibernateBaseDAO<Operator> {
	
	public Operator getByUsername(String username){
		String hql="from Operator where username=:username";
		Query query=session.createQuery(hql);
		query.setString("username", username);
		return (Operator) query.uniqueResult();
	}
	
}
